package com.puccampinas.finalproject.core.persistence.entity.enums;

public enum StepType {
	MANUAL,
	BARCODE,
	PHOTO,
	TEXT;
	
	public static StepType getType(String tipo) {
		if (tipo.equalsIgnoreCase("manual")) {
			return MANUAL;
		} else if (tipo.equalsIgnoreCase("barcode")) {
			return BARCODE;
		} else if (tipo.equalsIgnoreCase("photos")) {
			return PHOTO;
		} else {
			return TEXT;
		}
	}
	
}
